package cn.ml.chuji.jieKou.cpu;

public class Computer{
	CPU cpu;
	EMS ems;
	HardDisk hardDisk;

	public Computer(CPU cpu, EMS ems, HardDisk hardDisk) {
		this.cpu = cpu;
		this.ems = ems;
		this.hardDisk = hardDisk;
	}
	
	public void showInof() {
		System.out.println("CPU品牌"+cpu.getCPUBrand()+"\nCPU主频"+cpu.getFrequency()+"  \nEMS类型:"+ems.getEMSType()+"  \nEMS大小:"+ems.getSize()+"  \nHardDisk:"+hardDisk.getCapacity());
	}
}
